const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  hasToken: state => !!state.admin.token,
  avatar: state => state.admin.avatar,
  name: state => state.admin.name,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  serverMap: state => state.data.serverMap,
  departmentList: state => state.data.departmentList,
  permission_routes: state => state.permission.routes,
  positionList: state => state.data.positionList,
  isLastSteps: state => {
    const arr = state.project.projectInfo.processList
    return arr[arr.length - 1].status == 1
  }
}
export default getters
